#!/usr/bin/env bash

readonly PROJECT_NAME='memcached'
readonly CURR_DIR=$(dirname $(readlink -f "$0"))
readonly COMPOSE_FILE="${CURR_DIR}/memcached.yml"

cmd=$1
if [ -z "$cmd" ];then
  docker-compose -f "${COMPOSE_FILE}" -p ${PROJECT_NAME} up -d
else
  docker-compose -f "${COMPOSE_FILE}" -p ${PROJECT_NAME} "${cmd}"
fi
